#ifndef __COLLISION_REACTION_H
#define __COLLISION_REACTION_H

#include <map>
#include <QString>
#include <string>
enum Reactions {
	DIE,
	IGNORE,
	HARM
};

class CollisionReaction {
	
private:
	std::map<const char *,Reactions> reactions;
	
public:
	CollisionReaction () { }
	
	void addReaction (const char *name, const Reactions &r) { reactions[name] = r; }
	
	Reactions getReaction (const char *name) { 
		
		std::map<const char *, Reactions>::iterator it = reactions.find(name);
		if (it == reactions.end())
			return IGNORE;
		return it->second;
	}
	
};

#endif
